package com.isdepci.project.carbon.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.isdepci.project.carbon.mapper.EmissionPathLogMapper;
import com.isdepci.project.carbon.domain.EmissionPathLog;
import com.isdepci.project.carbon.service.IEmissionPathLogService;

/**
 * 减排路径记录Service业务层处理
 *
 * @author isdepci
 * @date 2024-11-12
 */
@Service
public class EmissionPathLogServiceImpl implements IEmissionPathLogService
{
    @Autowired
    private EmissionPathLogMapper emissionPathLogMapper;

    /**
     * 查询减排路径记录
     */
    @Override
    public EmissionPathLog selectEmissionPathLogById(Long id)
    {
        return emissionPathLogMapper.selectEmissionPathLogById(id);
    }

    /**
     * 查询减排路径记录列表
     */
    @Override
    public List<EmissionPathLog> selectEmissionPathLogList(EmissionPathLog emissionPathLog)
    {
        return emissionPathLogMapper.selectEmissionPathLogList(emissionPathLog);
    }

    /**
     * 新增减排路径记录
     */
    @Override
    public int insertEmissionPathLog(EmissionPathLog emissionPathLog)
    {
        return emissionPathLogMapper.insertEmissionPathLog(emissionPathLog);
    }

    /**
     * 修改减排路径记录
     */
    @Override
    public int updateEmissionPathLog(EmissionPathLog emissionPathLog)
    {
        return emissionPathLogMapper.updateEmissionPathLog(emissionPathLog);
    }

    /**
     * 批量删除减排路径记录
     */
    @Override
    public int deleteEmissionPathLogByIds(Long[] ids)
    {
        return emissionPathLogMapper.deleteEmissionPathLogByIds(ids);
    }

    /**
     * 删除减排路径记录信息
     */
    @Override
    public int deleteEmissionPathLogById(Long id)
    {
        return emissionPathLogMapper.deleteEmissionPathLogById(id);
    }
}
